home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / pam.d / login < prev    next >
Encoding:
Text File  |  2011-02-15  |  4.5 KB  |  108 lines

  1. #
  2. # The PAM configuration file for the Shadow `login' service
  3. #
  4.  
  5. # Enforce a minimal delay in case of failure (in microseconds).
  6. # (Replaces the `FAIL_DELAY' setting from login.defs)
  7. # Note that other modules may require another minimal delay. (for example,
  8. # to disable any delay, you should add the nodelay option to pam_unix)
  9. auth       optional   pam_faildelay.so  delay=3000000
  10.  
  11. # Outputs an issue file prior to each login prompt (Replaces the
  12. # ISSUE_FILE option from login.defs). Uncomment for use
  13. # auth       required   pam_issue.so issue=/etc/issue
  14.  
  15. # Disallows root logins except on tty's listed in /etc/securetty
  16. # (Replaces the `CONSOLE' setting from login.defs)
  17. #
  18. # With the default control of this module:
  19. #   [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die]
  20. # root will not be prompted for a pasword on insecure lines.
  21. # if an invalid username is entered, a password is prompted (but login
  22. # will eventually be rejected)
  23. #
  24. # You can change it to a "requisite" module if you think root may mis-type
  25. # her login and should not be prompted for a password in that case. But
  26. # this will leave the system as vulnerable to user enumeration attacks.
  27. #
  28. # You can change it to a "required" module if you think it permits to
  29. # guess valid user names of your system (invalid user names are considered
  30. # as possibly being root on insecure lines), but root passwords may be
  31. # communicated over insecure lines.
  32. auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_securetty.so
  33.  
  34. # Disallows other than root logins when /etc/nologin exists
  35. # (Replaces the `NOLOGINS_FILE' option from login.defs)
  36. auth       requisite  pam_nologin.so
  37.  
  38. # SELinux needs to be the first session rule. This ensures that any 
  39. # lingering context has been cleared. Without out this it is possible 
  40. # that a module could execute code in the wrong domain.
  41. # When the module is present, "required" would be sufficient (When SELinux
  42. # is disabled, this returns success.)
  43. session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
  44.  
  45. # This module parses environment configuration file(s)
  46. # and also allows you to use an extended config
  47. # file /etc/security/pam_env.conf.
  48. # parsing /etc/environment needs "readenv=1"
  49. session       required   pam_env.so readenv=1
  50. # locale variables are also kept into /etc/default/locale in etch
  51. # reading this file *in addition to /etc/environment* does not hurt
  52. session       required   pam_env.so readenv=1 envfile=/etc/default/locale
  53.  
  54. # Standard Un*x authentication.
  55. @include common-auth
  56.  
  57. # This allows certain extra groups to be granted to a user
  58. # based on things like time of day, tty, service, and user.
  59. # Please edit /etc/security/group.conf to fit your needs
  60. # (Replaces the `CONSOLE_GROUPS' option in login.defs)
  61. auth       optional   pam_group.so
  62.  
  63. # Uncomment and edit /etc/security/time.conf if you need to set
  64. # time restrainst on logins.
  65. # (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
  66. # as well as /etc/porttime)
  67. # account    requisite  pam_time.so
  68.  
  69. # Uncomment and edit /etc/security/access.conf if you need to
  70. # set access limits.
  71. # (Replaces /etc/login.access file)
  72. # account  required       pam_access.so
  73.  
  74. # Sets up user limits according to /etc/security/limits.conf
  75. # (Replaces the use of /etc/limits in old login)
  76. session    required   pam_limits.so
  77.  
  78. # Prints the last login info upon succesful login
  79. # (Replaces the `LASTLOG_ENAB' option from login.defs)
  80. session    optional   pam_lastlog.so
  81.  
  82. # Prints the motd upon succesful login
  83. # (Replaces the `MOTD_FILE' option in login.defs)
  84. session    optional   pam_motd.so
  85.  
  86. # Prints the status of the user's mailbox upon succesful login
  87. # (Replaces the `MAIL_CHECK_ENAB' option from login.defs). 
  88. #
  89. # This also defines the MAIL environment variable
  90. # However, userdel also needs MAIL_DIR and MAIL_FILE variables
  91. # in /etc/login.defs to make sure that removing a user 
  92. # also removes the user's mail spool file.
  93. # See comments in /etc/login.defs
  94. session    optional   pam_mail.so standard
  95.  
  96. # Standard Un*x account and session
  97. @include common-account
  98. @include common-session
  99. @include common-password
  100.  
  101. # SELinux needs to intervene at login time to ensure that the process
  102. # starts in the proper default security context. Only sessions which are
  103. # intended to run in the user's context should be run after this.
  104. session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
  105. # When the module is present, "required" would be sufficient (When SELinux
  106. # is disabled, this returns success.)
  107.